<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户绑定</title>
    <head th:insert="~{import :: head}"></head>
</head>
<body>
<div class="container">
    <form id="bindLoginForm" class="form-signin" action="/user/login" method="post">
        <h2 class="form-signin-heading">用户绑定</h2>
        <label for="bindInputUserName" class="sr-only">用户名</label>
        <input type="text" id="bindInputUserName" class="form-control" name="username" placeholder="用户名" required autofocus>
        <label for="bindInputPassword" class="sr-only">密码</label>
        <input type="password" id="bindInputPassword" class="form-control" name="password" style="margin: 0;" placeholder="密码" required>
        <label for="secondPassword" class="sr-only">请再一次输入</label>
        <input type="password" id="secondPassword" class="form-control" placeholder="再一次输入" style="margin: 0;" required>
        <label for="inputName" class="sr-only">昵称</label>
        <input type="text" id="inputName" class="form-control" style="display:none;" placeholder="昵称" required >
        <div>
            <label>
                <input type="radio" id="radioBindNotCreate" checked=true name="isCreate" style="margin:15px 0px 15px 5px" value="0" onclick="showOrHiddenInputName(1)"> 使用现有账号
            </label>
            <label>
                <input type="radio" id="radioBindIsCreate" value="1" name="isCreate" style="margin:15px 0px 15px 70px"  onclick="showOrHiddenInputName(0)"> 创建新账号
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="button" th:onclick="|javascript:bindProcess('${thirdPartData.id}','${thirdPartData.htmlUrl}','${thirdPartData.name}','${thirdPartData.avatarUrl}','${witchGit}')|">确定</button>
    </form>
</div>
</body>
</html>